#pragma once

#include "stdafx.h"
#include "bitmap.h"

class Player
{
public:
	Player();
	Player(int i);
	void updata();
	void draw();
	void init();
	bool checkHit(Point& p, float range);
	bool checkHit(Point& p, float range, int item);
	Point* getPoint()
	{
		return& _bitmap.p;
	}
protected:
private:
	inline void initdraw();
	inline void gamedraw();
	inline void initupdata();
	inline void gameupdata();
	int _life;
	float _power;
	int _clearBullet;
	bool _deadFlag;
	Bitmap _bitmap;
	int _boneNum;
	int _Score;
	float _hspd, _lspd, _nowSpeed;
	int nowDraw,calc;
	int _deadTime;
	bool _init;
	void readFromini();
};